<template>
  <div id="app">
    <router-link to="/comp1">组件1</router-link>
    <router-link to="/comp2">组件2</router-link>
    <router-view></router-view>
  </div>
</template>